import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl";

const TCHYURL = BASEURL.TCHYURL;
const carrierSettlementApi = {
  getList(params) {
    // 承运结算单对账单司机列表
    let url = TCHYURL + "/supplier/settleAccounts/listBillDriver";
    return myaxios.get(url, params);
  },

  PaymentDriverDetails(params) {
    // 付款单司机详情
    let url = TCHYURL + "/supplier/settleAccounts/billDetails";
    return myaxios.get(url, params);
  },
  driverSettleAccounts(params) {
    // 付款单司机  结算
    let url = TCHYURL + "/supplier/settleAccounts/settleAccounts";
    return myaxios.get(url, params);
  },
	
  orderApplyForPay(params) {
    // 付款单司机  结算   --2023-8-24 钱林
    let url = TCHYURL + "/order/bank/orderApplyForPay";
    return myaxios.post(url, params);
  },
  
  modifyDriverProject(params) {
    // 付款单司机  结算   --2023-8-24 钱林
    let url = TCHYURL + "/supplier/selfSupportWaybill/self_support/modifyDriverProject";
    return myaxios.post(url, params);
  },

  receiptSupplierList(params) {
    // 收款单(平台) 列表
    let url = TCHYURL + "/supplier/settleAccounts/fleet/bill/list";
    return myaxios.get(url, params);
  },
  receiptSupplierDetails(params) {
    // 收款单(平台) 详情
    let url = TCHYURL + "/supplier/settleAccounts/fleet/bill/detail";
    return myaxios.get(url, params);
  },

  //付款单 运单信息详情
  SettleAccountsWaybillDetails(params) {
    let url = TCHYURL + "/supplier/settleAccounts/waybillDetails";
    return myaxios.get(url, params);
  },
  calculateReceipt(params) {
    // 收款单结算
    let url = TCHYURL + "/supplier/settleAccounts/fleet/settlement/submit";
    return myaxios.post(url, params);
  },
  newDriverQueryTransportBill(params) {
    // 新增司机台账
    let url = TCHYURL + "/selfSupportWaybill/self_support/newDriverQueryTransportBill";
    return myaxios.post(url, params);
  },

};
export default carrierSettlementApi;
